package com.itlaoqi.springcloud.bookservice.mapper;

import com.itlaoqi.springcloud.bookservice.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper

public interface BookMappper {

    @Select("select * from books")
    List<Book> getAllBooks();
}
